﻿using AgencyManagerSystem.Model;
using System.Collections.Generic;
using System.Linq;

namespace AgencyManagerSystem.DataFetcher
{
    public class PicFetcher : BaseFetcher<PicModel>
    {
        public PicFetcher() : base()
        {

        }

        public IList<PicModel> ListByOwner(int type,int owner)
        {
            Condition[] conditions = new Condition[] { new Condition() { Key = "Type", Op = "=", Value = type }, new Condition() { Key = "Owner", Op = "=", Value = owner} };
            var list = List(conditions);
            return list;
        }
    }
}
